package com.tlgen.spring.factory;

import com.google.common.collect.Lists;
import com.tlgen.spring.model.BeanDefinition;

import java.util.List;

/**
 * 支持手写的 speed-spring 框架
 */
public class SpeedDefaultListBeanFactory {

    private List<BeanDefinition> beanDefinitionList = Lists.newArrayList();

    public SpeedDefaultListBeanFactory() {

    }

    private static class CreateBeanFactory {
        private static final SpeedDefaultListBeanFactory instance = new SpeedDefaultListBeanFactory();
    }

    public static SpeedDefaultListBeanFactory getInstance() {
        return CreateBeanFactory.instance;
    }

    public List<BeanDefinition> getBeanDefinitionList() {
        return beanDefinitionList;
    }

    public void setBeanDefinitionList(List<BeanDefinition> beanDefinitionList) {
        this.beanDefinitionList = beanDefinitionList;
    }

}
